<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
//从上一页面点击row过来，传了row id 过来
//pageContext.setAttribute("_prePageListId",request.getParameter("_id"));
pageContext.setAttribute("_prePageListId",request.getParameter("_id")==null?"":request.getParameter("_id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>	
<script type="text/javascript">
var isIe = $.browser.msie;
var valueFilterNum = 0;

//定义全局变量记录分页信息  
var paramData = {  
 page:1,
 rows:60,
 sortOrder:'desc', 
 sortColumn:''
};  
var msgOut={};


$(function(){
    $(pager).pagination({
        displayMsg: '<span style="color: red; margin-right: 100px;"></span>' +
        '当前显示 {from} - {to} 条记录   共 {total} 条记录'
    });

	$("#workPlanDateTmp").calendar({
		onSelect: function(date){
			var year = date.getFullYear();
			var month = date.getMonth()+1;
			if(month<10)month="0"+month;
			var day = date.getDate();
			if(day<10)day="0"+day;
			var dateStr = year+"-"+month+"-"+day;
			//condition query parameter
			$("#workPlanDate").textbox("setValue",dateStr);
			//query button
			queryBtn_Filter()
			//

			$('#cc').calendar({
				validator: function(date1){
					var d1 = new Date(date.getFullYear(), date.getMonth(), date.getDate());
					var d2 = new Date(date.getFullYear(), date.getMonth(), date.getDate());
					return d1<=date1 && date1<=d2;
				}
			});
		}
	});
	var d = new Date();
	var year = d.getFullYear()
	var month = d.getMonth()+1;
	if(month<10)month="0"+month;
	var day = d.getDate()
	if(day<10)day="0"+day;
	var dateStr = year+"-"+month+"-"+day;
	//condition query parameter
	$("#workPlanDate").textbox("setValue",dateStr);
	//query button
	queryBtn_Filter()
})

function getWorkPlanDateValue(){
	return $("#workPlanDate").val();
}

</script>
<style type="text/css">
/*	.condition{
		border:1px solid #fff;
		margin-top: 5px;
	}
	.condition .myinput{
		border:0px solid #fff;
		margin-top: 4px;
	}*/
</style>
</head>

<%@taglib uri="/struts-tags" prefix="s" %>  
<body>
<div class="easyui-layout" data-options="fit:true"  id="conditionNorth" style="visibility:hidden;">

	<div data-options="region:'center'" style="overflow:hidden;  padding-left: 3px;padding-top: 3px;">
		<div id="_conditionContentDiv" style="border: 0px solid red;">
			<script type="text/javascript">
				var columnPropertyArr = new Array();
				var columnPropertyTypeArr = new Array();
			</script>

				<div class="condition">
					<div class="item">
						<label class="mylabel">排班日期</label>
						<div class="myinput">
							<input id="workPlanDate" name="workPlanDate" class="easyui-textbox"
								   data-options={"editable":false}>
							<div id="workPlanDateTmp" name="workPlanDateTmp" class="easyui-calendar"
								   style="width:290px;height:240px;margin-top: 5px;"></div>
							<script type="text/javascript">
								columnPropertyArr[columnPropertyArr.length] = 'workPlanDate';
								columnPropertyTypeArr[columnPropertyTypeArr.length] = 'input';
							</script>
						</div>
					</div>
				</div>

			<div class="clearboth"></div>
			<div style="height: 0px;"></div>
		</div>
	</div>
</div>			
</body>
</html>